Download OpenAPI specification:Download
A REST interface for state queries, legacy transactions
A successful response.
An unexpected error response.
denom we are querying gas price in
Since: cosmos-sdk 0.47
address is the account address string.
When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
Since: cosmos-sdk 0.43
key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.
offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.
limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.
count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.
reverse is set to true if results are to be returned in the descending order.
address defines the address to query for.
Since: cosmos-sdk 0.46.2
Deprecated, use account_id instead
id is the account number of the address to be queried. This field should have been an uint64 (like all account numbers), and will be updated to uint64 in a future version of the auth query.
account_id is the account number of the address to be queried.
Since: cosmos-sdk 0.46
Optional, msg_type_url, when set, will query only grants matching given msg type.
address is the address to query balances for.
resolve_denom is the flag to resolve the denom into a human-readable form from the metadata.
Since: cosmos-sdk 0.50
denom is the coin denom to query balances for.
denom defines the coin denomination to query all account holders for.
Since: cosmos-sdk 0.50.3
denom is the coin denom to query the metadata for.
This query only returns denominations that have specific SendEnabled settings. Any denomination that does not have a specific setting will use the default params.default_send_enabled, and will not be returned by this query.
denoms is the specific denoms you want look up. Leave empty to get all entries.
address is the address to query spendable balances for.
delegator_address defines the delegator address to query for.
validator_address defines the validator address to query for.
starting_height defines the optional starting height to query the slashes.
starting_height defines the optional ending height to query the slashes.
hash defines the evidence hash of the requested evidence.
evidence_hash defines the hash of the requested evidence. Deprecated: Use hash, a HEX encoded string, instead.
granter is the address of the user granting an allowance of their funds.
grantee is the address of the user being granted an allowance of another user's funds.
params_type defines which parameters to query for, can be one of "voting", "tallying" or "deposit".
proposal_status defines the status of the proposals.
voter defines the voter address for the proposals.
depositor defines the deposit addresses from the proposals.
proposal_id defines the unique id of the proposal.
subspace defines the module to query the parameter for.
key defines the key of the parameter in the subspace.
cons_address is the address to query signing info of
delegator_addr defines the delegator address to query for.
src_validator_addr defines the validator address to redelegate from.
dst_validator_addr defines the validator address to redelegate to.
validator_addr defines the validator address to query for.
height defines at which height to query the historical info.
status enables to query for validators matching a given status.
name is the name of the applied plan to query for.
module_name is a field to query a specific module consensus version from state. Leaving this empty will fetch the full list of module versions from state.
last height of the current chain must be sent in request as this is the height under which next consensus state is stored
unique channel identifier
unique port identifier
Height to query at.
the relayer address to which the counterparty is registered
the relayer address to which the distribution address is registered
channel unique identifier
channel port identifier
packet sequence
block height at which to query.
The denomination trace ([port_id]/[channel_id])+/[denom]
port unique identifier
revision number of the consensus state
revision height of the consensus state
list of packet sequences.
list of acknowledgement sequences
list of packet sequences
connection unique identifier
client state unique identifier
client unique identifier
client identifier
consensus state revision number
consensus state revision height
latest_height overrides the height field and queries the latest stored ConsensusState.
client unique identifier.
the proof to be verified by the client.
Normally the RevisionHeight is incremented at each height while keeping RevisionNumber the same. However some consensus algorithms may choose to reset the height in certain conditions e.g. hard forks, state-machine breaking changes In these cases, the RevisionNumber is incremented so that height continues to be monitonically increasing even as the RevisionHeight gets reset
Please note that json tags for generated Go code are overridden to explicitly exclude the omitempty jsontag. This enforces the Go json marshaller to always emit zero values for both revision_number and revision_height.
the value which is proven.
the commitment key path.
{"client_id": "string","proof": "string","proof_height": {"revision_number": "string","revision_height": "string"},"value": "string","time_delay": "string","block_delay": "string","merkle_path": {"key_path": ["string"]}}
client identifier associated with a connection
connection identifier
tx_bytes is the raw transaction.
{"tx_bytes": "string"}
{"amino_binary": "string"}
Tx is the standard type used for broadcasting transactions.
{"tx": {"body": {"messages": [{"type_url": "string","value": "string"}],"memo": "string","timeout_height": "string","extension_options": [{"type_url": "string","value": "string"}],"non_critical_extension_options": [{"type_url": "string","value": "string"}]},"auth_info": {"signer_infos": [{"public_key": {"type_url": "string","value": "string"},"mode_info": {"single": {"mode": "SIGN_MODE_UNSPECIFIED"},"multi": {"bitarray": {"extra_bits_stored": 0,"elems": "string"},"mode_infos": [{ }]}},"sequence": "string"}],"fee": {"amount": [{"denom": "string","amount": "string"}],"gas_limit": "string","payer": "string","granter": "string"},"tip": {"amount": [{"denom": "string","amount": "string"}],"tipper": "string"}},"signatures": ["string"]}}
{"amino_json": "string"}
{"tx": {"body": {"messages": [{"type_url": "string","value": "string"}],"memo": "string","timeout_height": "string","extension_options": [{"type_url": "string","value": "string"}],"non_critical_extension_options": [{"type_url": "string","value": "string"}]},"auth_info": {"signer_infos": [{"public_key": {"type_url": "string","value": "string"},"mode_info": {"single": {"mode": "SIGN_MODE_UNSPECIFIED"},"multi": {"bitarray": {"extra_bits_stored": 0,"elems": "string"},"mode_infos": [{ }]}},"sequence": "string"}],"fee": {"amount": [{"denom": "string","amount": "string"}],"gas_limit": "string","payer": "string","granter": "string"},"tip": {"amount": [{"denom": "string","amount": "string"}],"tipper": "string"}},"signatures": ["string"]},"tx_bytes": "string"}
events is the list of transaction event type. Deprecated post v0.47.x: use query instead, which should contain a valid events query.
page is the page number to query, starts at 1. If not provided, will default to first page.
query defines the transaction event query that is proxied to Tendermint's TxSearch RPC method. The query must be valid.
Since cosmos-sdk 0.50
BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.
{"tx_bytes": "string","mode": "BROADCAST_MODE_UNSPECIFIED"}
Since: cosmos-sdk 0.45.2
height is the height of the block to query.
hash is the tx hash to query, encoded as a hex string.